<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    table {
      border-collapse: collapse;
      width: 100px;
    }

    td {
      border: 1px solid #333;
    }
  </style>
</head>

<body>
  <table>
    <caption>跨列:colspan</caption>
    <tr>
      <td colspan="2">1-1</td>
      <!-- <td>1-2</td> -->
    </tr>
    <tr>
      <td>2-1</td>
      <td>2-2</td>
    </tr>
  </table>
  <hr>
  <table>
    <caption>跨行:rowspan</caption>
    <tr>
      <td rowspan="2">1-1</td>
      <td>1-2</td>
    </tr>
    <tr>
      <!-- <td>2-1</td> -->
      <td>2-2</td>
    </tr>
  </table>
</body>

</html>